﻿using System;

namespace HHGFramework.Infrastructure
{
    public class Page
    {
        public int PageIndex { get; set; }
        public int PageSize { get; set; }
        public int Pages
        {

            get
            {
                var Pages = this.TotalCount / this.PageSize;
                if (this.TotalCount % this.PageSize > 0)
                {
                    Pages++;
                }
                return Pages;
            }
        }

        public int TotalCount { get; set; }

        public string Order { get; set; }
        public string Sort { get; set; }

    }
}
